package com.lq.springai.init;

import com.lq.springai.cache.ModelCache;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * * Author 30783
 * * Data：2025/6/26 14:45
 */
@Slf4j
@Component
@AllArgsConstructor
public class MyApplicationRunner implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args) throws Exception {
        ModelCache.getInstance().init();
    }

}
